package com.ruibang.glass.produce.controller.system;

import com.ruibang.glass.produce.domain.req.StoneScatterPlotReq;
import com.ruibang.glass.produce.service.StoneDistributionMapService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-05-14  14:01
 * @Description: TODO
 * @Version: 1.0
 */
@Api(tags = "热端结石分布图控制器")
@RestController
@RequestMapping("/api/glass/produce/stoneDistributionMap")
public class StoneDistributionMapController {

    @Autowired
    private StoneDistributionMapService stoneDistributionMapService;

    @PostMapping("/scatterPlot")
    @ApiOperation(value = "热端结石散点图", response = ResultBody.class)
    public ResultBody scatterPlot(@RequestBody StoneScatterPlotReq stoneScatterPlotReq) {
        return ResultBody.success(stoneDistributionMapService.scatterPlot(stoneScatterPlotReq));
    }

}
